home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / ShutDown.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.2 KB  |  54 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 11:15 PM
  3.     ShutDown.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1987-1989
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT ShutDown;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingShutDown}
  21. {$SETC UsingShutDown := 1}
  22.  
  23. {$I+}
  24. {$SETC ShutDownIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := ShutDownIncludes}
  30.  
  31. CONST
  32. sdOnPowerOff = 1;       {call procedure before power off.}
  33. sdOnRestart = 2;        {call procedure before restart.}
  34. sdOnUnmount = 4;        {call procedure before unmounting.}
  35. sdOnDrivers = 8;        {call procedure before closing drivers.}
  36. sdRestartOrPower = 3;   {call before either power off or restart.}
  37.  
  38. PROCEDURE ShutDwnPower;
  39.     INLINE $3F3C,$0001,$A895;
  40. PROCEDURE ShutDwnStart;
  41.     INLINE $3F3C,$0002,$A895;
  42. PROCEDURE ShutDwnInstall(shutDownProc: ProcPtr;flags: INTEGER);
  43.     INLINE $3F3C,$0003,$A895;
  44. PROCEDURE ShutDwnRemove(shutDownProc: ProcPtr);
  45.     INLINE $3F3C,$0004,$A895;
  46.  
  47.  
  48. {$ENDC}    { UsingShutDown }
  49.  
  50. {$IFC NOT UsingIncludes}
  51.     END.
  52. {$ENDC}
  53.  
  54.